package com.coolw.design.pattern.behavior.liabilitychain.handler;

import com.coolw.design.pattern.behavior.liabilitychain.dto.OrderCheckParam;

/**
 * 订单检查处理接口
 *
 * @author coolw
 * @date 2024/10/22 19:25
 */
public interface OrderCheckHandler {

    /**
     * 订单参数检查
     *
     * @param orderCheckParam 订单检查参数
     */
    void check(OrderCheckParam orderCheckParam);

    /**
     * 设置下一步检查处理类
     *
     * @param nextOrderCheckHandler 下一步检查处理类
     * @return 返回下一步检查处理类
     */
    OrderCheckHandler nextHandler(OrderCheckHandler nextOrderCheckHandler);
}
